<?php
namespace app\entity;

class User {
    
    public $id;

    public $name;

    public function __construct($row = []) {
        if (isset($row['id'])) {
            $this->id = $row['id'];
        }

        if (isset($row['name'])) {
            $this->name = $row['name'];
        }
    }
    
}